class_name BlockEffect
extends Effect

var amount := 0

func execute(targets: Array[Node]) -> void:
	for target in targets:
		if not target:
			continue
		if target is Enemy or target is Player:
			# 使用基类的翻倍检查
			var final_amount = get_enhanced_amount(amount, target)
			
			target.stats.block += final_amount
			
			# 如果数值被增强，显示提示
			if final_amount > amount:
				print("🚀 格挡效果翻倍激活！基础: %d → 最终: %d" % [amount, final_amount])
			
			SFXPlayer.play(sound)
